﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Uow;

namespace EventBus
{
    public class ScoreService : ApplicationService,IScoreService
    {
        public IRepository<Score, Guid> scoreRepository { get; set; }

        public async Task<bool> AddScoreAsync(Guid StudentId, int ScoreValue)
        {
            var model = new Score() { StudentId = StudentId, ScoreValue = ScoreValue };

            await scoreRepository.InsertAsync(model);
            return true;
        }

       

       
    }
}
